Add cats to adoptable pet pool (closes #115)#124
Merged
Conversation
Collaborator
There was a problem hiding this comment.
Can we make this singular and get rid of the mapping
Collaborator
There was a problem hiding this comment.
(not needed for this PR)
Collaborator
|
We're deciding to make this one request instead of two, but everythign else lgtm! |
Register RescueGroups sources for both species so the bot and website feed can feature cats, with tests and offline debug fixtures. Co-authored-by: Cursor <cursoragent@cursor.com>
Keeps adoption source and poster imports at the top instead of inside create_sources and create_posters. Co-authored-by: Cursor <cursoragent@cursor.com>
Use filterProcessing for multi-species search and parse species from included response data. Co-authored-by: Cursor <cursoragent@cursor.com>
8ad7ba6 to
c4d4ae2
Compare
jonnyjohannes
approved these changes
Jun 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #115.
The bot previously fetched dogs only from RescueGroups, so the Mastodon feed and website "Recent posts" section never showed cats. This change registers a RescueGroups source for each configured species (dogs and cats), merges the results, and picks randomly from the combined pool as before.
PET_SPECIES = ("dogs", "cats")inconfig.pycreate_sources()to register multipleSourceRescueGroupsinstancesSPECIES_SINGULARand filter"more cats soon!"placeholder namesSourceManualplus a small cat fixtureNo website or poster changes are required — cat posts will appear on cutepetsboston.org automatically once posted to Mastodon.
Test plan
pytest tests/— 76 passedpython -m unittest discover -s tests— 14 passedpython main.py --debugsources --debugposters— fetches 27 records (25 dogs + 2 cats)Fetching dogs...andFetching cats...Made with Cursor